<include file="Public/header"/>
    <div class="x-body layui-anim layui-anim-up">
        <blockquote class="layui-elem-quote">欢迎管理员：
            <span class="x-red">admin</span>！今天是:<php>echo date('Y.m.d',time())</php></blockquote>
        <fieldset class="layui-elem-field">
            <legend>数据统计</legend>
            <div class="layui-field-box">
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-body">
                            <div class="layui-carousel x-admin-carousel x-admin-backlog" lay-anim="" lay-indicator="inside" lay-arrow="none" style="width: 100%; height: 90px;">
                                <div carousel-item="">
                                    <ul class="layui-row layui-col-space10 layui-this">
                                        <li class="layui-col-xs3">
                                            <a href="javascript:;" class="x-admin-backlog-body">
                                                <h3>今日会员数</h3>
                                                <p>
                                                    <cite>{$usercount['dayuser']|default=0}</cite></p>
                                            </a>
                                        </li>
                                        <li class="layui-col-xs3">
                                            <a href="javascript:;" class="x-admin-backlog-body">
                                                <h3>本月会员数</h3>
                                                <p>
                                                    <cite>{$usercount['monthuser']|default=0}</cite></p>
                                            </a>
                                        </li>
                                        <li class="layui-col-xs3">
                                            <a href="javascript:;" class="x-admin-backlog-body">
                                                <h3>今日订单数</h3>
                                                <p>
                                                    <cite>{$ordercount['dayorder']|default=0}</cite></p>
                                            </a>
                                        </li>
                                        <li class="layui-col-xs3">
                                            <a href="javascript:;" class="x-admin-backlog-body">
                                                <h3>本月订单数</h3>
                                                <p>
                                                    <cite>{$ordercount['monthorder']|default=0}</cite></p>
                                            </a>
                                        </li>

                                    </ul>

                                </div>
                            </div>
                        </div>
                    </div>
                </div>



                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-body">
                            <div class="layui-carousel x-admin-carousel x-admin-backlog" lay-anim="" lay-indicator="inside" lay-arrow="none" style="width: 100%; height: 90px;">
                                <div carousel-item="">
                                    <ul class="layui-row layui-col-space10 layui-this">

                                        <li class="layui-col-xs3">
                                            <a href="javascript:;" class="x-admin-backlog-body">
                                                <h3>今日营业额</h3>
                                                <p>
                                                    <cite>{$orderjiner['dayorderJiner']|default=0.00}</cite></p>
                                            </a>
                                        </li>
                                        <li class="layui-col-xs3">
                                            <a href="javascript:;" class="x-admin-backlog-body">
                                                <h3>本月营业额</h3>
                                                <p>
                                                    <cite>{$orderjiner['monthorderJiner']|default=0.00}</cite></p>
                                            </a>
                                        </li>


                                        <li class="layui-col-xs3">
                                            <a href="javascript:;" class="x-admin-backlog-body">
                                                <h3>累计成功拨出佣金</h3>
                                                <p>
                                                    <cite>{$leiji|default=0}</cite></p>
                                            </a>
                                        </li>
                                        <li class="layui-col-xs3">
                                            <a href="javascript:;" class="x-admin-backlog-body">
                                                <h3>拨出失败佣金</h3>
                                                <p>
                                                    <cite>{$leijierror|default=0}</cite></p>
                                            </a>
                                        </li>
                                    </ul>

                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <!-- 网站数据统计 -->

            </div>
        </fieldset>

        <div class="layui-col-xs12 layui-col-sm12 layui-col-md6 layui-col-lg6">
            <div class="layui-card">
                <div class="layui-card-header">订单统计</div>
                <div class="layui-card-body" id="order_num" style="height: 400px">

                </div>
            </div>
        </div>
        <!-- 信息统计 -->
        <div class="layui-col-xs12 layui-col-sm12 layui-col-md6 layui-col-lg6">
            <div class="layui-card">
                <div class="layui-card-header">营业额统计</div>
                <div class="layui-card-body" id="order_amount" style="height: 400px">

                </div>
            </div>

        </div>

    </div>
<script src="__PUBLIC__/ekadmin/lib/echarts.js">

</script>
<script>

    var orderNumChart = echarts.init(document.getElementById('order_num'));
     var orderAmountChart = echarts.init(document.getElementById('order_amount'));

    // $.ajax({
    //     url:"{:('gg')}",
    //     method:"post",
    //     dataType:"json",
    //     data:{id:0},
    //     success:function(res){
    //
    //             orderNumChart.setOption(res.order_num_eachar);
    //             orderAmountChart.setOption(res.order_amount_echar);
    //
    //     },
    //     complete:function () {
    //
    //     }
    // });
    //     return false;
    // var options={
    //     //定义一个标题
    //     title:{
    //         text:'7日订单统计'
    //     },
    //     legend:{
    //         data:['销量']
    //     },
    //     //X轴设置
    //     xAxis:{
    //         data:['60','70','80','90','100']
    //     },
    //     yAxis:{
    //         minInterval:1
    //
    //     },
    //     //name=legend.data的时候才能显示图例
    //     series:[{
    //         name:'销量',
    //         type:'bar',
    //         data:['0','0','0','0','0']
    //     }]
    //
    // };

    var options2={
        //定义一个标题
        title:{
            text:'7日营业额统计'
        },
        legend:{
            data:['营业额']
        },
        //X轴设置
        xAxis:{
            data:['60','70','80','90','100']
        },


        yAxis:{
            minInterval:1
        },
        //name=legend.data的时候才能显示图例
        series:[{
            name:'营业额',
            type:'line',
            data:['0','0','0','0','0']
        }]

    };
    // orderNumChart.setOption(options);
    // var orderAmountChart = echarts.init(document.getElementById('order_amount'));
    // orderAmountChart.setOption(options2);

</script>
   <include file="Public/footer"/>